package com.ruoyi.bussiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bussiness.mapper.PubBuspoolMapper;
import com.ruoyi.bussiness.domain.PubBuspool;
import com.ruoyi.bussiness.service.IPubBuspoolService;
import com.ruoyi.common.core.text.Convert;

/**
 * 场站Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
@Service
public class PubBuspoolServiceImpl implements IPubBuspoolService 
{
    @Autowired
    private PubBuspoolMapper pubBuspoolMapper;

    /**
     * 查询场站
     * 
     * @param id 场站主键
     * @return 场站
     */
    @Override
    public PubBuspool selectPubBuspoolById(Long id)
    {
        return pubBuspoolMapper.selectPubBuspoolById(id);
    }

    /**
     * 查询场站列表
     * 
     * @param pubBuspool 场站
     * @return 场站
     */
    @Override
    public List<PubBuspool> selectPubBuspoolList(PubBuspool pubBuspool)
    {
        return pubBuspoolMapper.selectPubBuspoolList(pubBuspool);
    }

    /**
     * 新增场站
     * 
     * @param pubBuspool 场站
     * @return 结果
     */
    @Override
    public int insertPubBuspool(PubBuspool pubBuspool)
    {
        return pubBuspoolMapper.insertPubBuspool(pubBuspool);
    }

    /**
     * 修改场站
     * 
     * @param pubBuspool 场站
     * @return 结果
     */
    @Override
    public int updatePubBuspool(PubBuspool pubBuspool)
    {
        return pubBuspoolMapper.updatePubBuspool(pubBuspool);
    }

    /**
     * 批量删除场站
     * 
     * @param ids 需要删除的场站主键
     * @return 结果
     */
    @Override
    public int deletePubBuspoolByIds(String ids)
    {
        return pubBuspoolMapper.deletePubBuspoolByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除场站信息
     * 
     * @param id 场站主键
     * @return 结果
     */
    @Override
    public int deletePubBuspoolById(Long id)
    {
        return pubBuspoolMapper.deletePubBuspoolById(id);
    }
}
